package com.ssm.pre.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ssm.pre.service.WechatOrderService;
import com.ssm.util.object.InputObject;
import com.ssm.util.object.OutputObject;

/**
 * 订单的相关操作
 * @author mps
 *
 */
@Controller
public class WechatOrderController {

	@Autowired
	private WechatOrderService wechatOrderSerive;
	
	/**
	 * 获取物业费订单参数进行订单付款
	 * @param inputObject
	 * @param outputObject
	 * @throws Exception
	 */
	@RequestMapping("/gateway/WechatOrderController/getOrderParameter")
	@ResponseBody
	public void getOrderParameter(InputObject inputObject, OutputObject outputObject) throws Exception{
		wechatOrderSerive.getOrderParameter(inputObject, outputObject);
	}
	
	/**
	 * 获取物业费订单参数进行订单付款
	 * @param inputObject
	 * @param outputObject
	 * @throws Exception
	 */
	@RequestMapping("/gateway/WechatOrderController/getOrderParameter2")
	@ResponseBody
	public void getOrderParameter2(InputObject inputObject, OutputObject outputObject) throws Exception{
		wechatOrderSerive.getOrderParameter2(inputObject, outputObject);
	}
	
	/**
	 * 查找微信物业支付订单
	 * @param inputObject
	 * @param outputObject
	 * @throws Exception
	 */
	@RequestMapping("/post/WechatOrderController/queryPropertyOrderByList")
	@ResponseBody
	public void queryPropertyOrderByList(InputObject inputObject, OutputObject outputObject) throws Exception{
		wechatOrderSerive.queryPropertyOrderByList(inputObject, outputObject);
	}
	
	/**
	 * 查找微信电费支付订单
	 * @param inputObject
	 * @param outputObject
	 * @throws Exception
	 */
	@RequestMapping("/post/WechatOrderController/queryElectricOrderByList")
	@ResponseBody
	public void queryElectricOrderByList(InputObject inputObject, OutputObject outputObject) throws Exception{
		wechatOrderSerive.queryElectricOrderByList(inputObject, outputObject);
	}
	
}
